<extend name="Public:base"/>

<block name="main">
    <div id="yzh-content" class="col-xs-12">
        <div class="main-title">
            <h2>菜单管理</h2>
        </div>

        <form id="myform" class="form-horizontal" method='post' action="">

            <div class="form-group">
                <label class="control-label col-md-2">上级:</label>
                <div class="col-md-6">
                    <select name="parentid" class="form-control">
                        <option value="0">{:L('menu_top_menu')}</option>
                        {$select_categorys}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-md-2">名称:</label>
                <div class="col-md-6">
                    <input type="text" class="form-control" name="name" value="">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-md-2">模块:</label>
                <div class="col-md-6">
                    <input type="text" class="form-control" name="model" value="">
                </div>
            </div>
            <div class="form-group">
                <lable class="control-label col-md-2">方法:</lable>
                <div class="col-md-6">
                    <input type="text" class="form-control"  name="action" value="" > {:L('default')}:index
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-md-2">{:L('menu_option')}:</label>
                <div class="col-md-6">
                    <input type="text" class="form-control"  name="data" value=""> {:L('examples')}:groupid=1&type=2
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-md-2">图标:</label>
                <div class="col-md-6">
                    <!-- <i class="{$vo.icon}"></i> -->
                    <input type="text" class="form-control" name="icon" value="{$vo.icon}">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-md-2">备注:</label>
                <div class="col-md-6">
                    <textarea class="form-control" name="remark" rows="5" cols="57">{$vo.remark}</textarea>
                </div>
            </div>
            <div class="form-group">
                <lable class="control-label col-md-2">状态:</lable>
                <div class="col-md-6">
                    <select name="status" class="form-control">
                    <option value="1">启用</option>
                    <option value="0">禁用</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-md-2">是否仅开发环境可见:</label>
                <div class="col-md-6">
                    <select name="is_dev" class="form-control">
                        <option value="0">否</option>
                        <option value="1">是</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-md-2">类型:</label>
                <div class="col-md-6">
                    <select name="type" class="form-control">
                    <option value="1">后台管理</option>
                    </select>
                </div>
            </div>

            <div class="form-actions">
                <input type="submit" value="提交" class="btn btn-sm btn-primary" />
                <input type="reset" value="重置" class="btn btn-sm btn-primary"/>
            </div>
        </form>
    </div>
</block>